<HTML>
	<TITLE>Workflow.NET
		<%#actionname%>
		-<%#propertyname%></TITLE>
	<STYLE><%#stylesheet%> 
	</STYLE>
	<BODY marginheight="0" marginwidth="0" topmargin="0" leftmargin="0">
		<form name="wf_theform" method="post">
			<TABLE width="100%" height="100%" bgcolor="<%#bgcolor%>" cellspacing="0" cellpadding="0" border="0">
				<TR>
					<TD valign="top">
						<TABLE width="100%" height="100%">
							<TR>
								<TD valign="top">
									<IFRAME name="frame_newinputs" src="<%#requeststring%>&amp;pagesection=inputframe&amp;_mode=<%#mode%>&amp;_pageinfo=<%#pageinfo%>&amp;_questioncount=<%#questioncount%>" width="100%" height="100%">
									</IFRAME>
								</TD>
							</TR>
						</TABLE>
					</TD>
				</TR>
				<TR>
					<TD height="1" bgcolor="black"><IMG src="?drawimage=spacer.gif" height="1" width="1"></TD>
				</TR>
				<TR>
					<TD height="1" bgcolor="white"><IMG src="?drawimage=spacer.gif" height="1" width="1"></TD>
				</TR>
				<TR>
					<TD align="middle" height="50">
						<TABLE bgcolor="white">
							<TR>
								<TD colspan=2>
									Add Task Type here,Number of Status that you want to add under this Particular TaskType can be managed by entering values in <br>"No.of Status" field.
								</TD>
							</TR>
						</TABLE>
					</TD>
				</TR>
				<TR>
					<TD height="1" bgcolor="black"><IMG src="?drawimage=spacer.gif" height="1" width="1"></TD>
				</TR>
				<TR>
					<TD height="1" bgcolor="white"><IMG src="?drawimage=spacer.gif" height="1" width="1"></TD>
				</TR>
				<TR>
					<TD align="right" height="30" width="100%">
						<input type="button" class="buttons" value="Back" name="btnback" id="btnback" onclick="window.history.back();">
						<input type="button" class="buttons" value="Next" name="btnnext" id="btnnext" onclick="javascript:nextstep('<%#mode%>', 'page2','')">&nbsp;&nbsp;
						<input type="button" class="buttons" value="Cancel" ID="btnCancel" onclick="window.close();" NAME="btnCancel">
					</TD>
				</TR>
			</TABLE>
			<input type="hidden" name="_hidtempstore" id="_hidtempstore"> <input type="hidden" name="_mode" ID="_mode">
			<input type="hidden" name="_pageinfo" id="_pageinfo"> <input type="hidden" name="_wizardsessionid" id="_wizardsessionid">
		</form>
		<SCRIPT>

	function nextstep(mode,pageinfo,tempstore)
	{
		var frameinputs = getframeinputs()
		if (frameinputs.length>0)
		{
			tempstore +=frameinputs;
			document.wf_theform._mode.value=mode;
			document.wf_theform._pageinfo.value = pageinfo;
			document.wf_theform._hidtempstore.value=tempstore;	
			document.wf_theform.submit()
		}
	}	
	
	function getframeinputs()
	{
		var i=0;
		var returnvalue="";
		var obj = eval("frame_newinputs");
		var tempobj;
		var d = obj.document
		var questiontype="";
		var temp="";
		
		if (parseInt(d.wf_theform.questioncount.value)> 0 )
		{
			for ( i = 0 ;i<parseInt(d.wf_theform.questioncount.value);i++)
			{
				tempobj = eval("d.wf_theform.displaytext" + i)
				temp = tempobj.value
				if (temp.length > 0)
				{
					returnvalue += "#" + tempobj.value;
					tempobj = eval("d.wf_theform.options" + i)
					if (isNaN(tempobj.value) || parseInt(tempobj.value)==0)
						{
							alert("Incorrect entry. No. of options should be a numeric value and greater than 0");
							return "";
						}
					
					returnvalue += ";" + tempobj.value;
					tempobj = eval("d.wf_theform.TaskName" + i)
					if (tempobj!=null)
						returnvalue += ";" + tempobj.value;
				}
			}
			if (returnvalue.length==0)
			{
				alert("1 or more questions have an incorrect definition");
				return "";
			}
			tempobj = eval("d.wf_theform._wizardsessionid")
			document.wf_theform._wizardsessionid.value = tempobj.value;
		}
		return returnvalue;
	}
		</SCRIPT>
	</BODY>
</HTML>
